<php>if($mid === 0 || !isset($mid)){</php>
	<script>
		function changeverify(){
			var date = new Date();
			var ttime = date.getTime();
			$('#verifyimg').attr('src',TS+'/Index/verify/time/'+ttime);
		}

	</script>
	<div class="user_app"><!-- 用户组件列表 begin -->
		<div class="user_app_top"></div>
		<div class="left_login_box">
		<h2>登录站点</h2>
		<form action="__TS__/Index/doLogin" method="post">
		<div style="width:55px;">Email：</div><div style="width:120px; margin-bottom:5px;"><input name="email" type="text" class="TextH20" id="textfield3" onfocus="this.className='Text2'" onblur="this.className='TextH20'" style="width:100%;"/>
		</div>
		<p><div style="width:55px;">密码：</div><div style="width:120px; margin-bottom:5px;"><input name="passwd" type="password" class="TextH20" id="textfield3" onfocus="this.className='Text2'" onblur="this.className='TextH20'"  style="width:100%;"/></div>
		</p>
		<php>	
		    $verify_allow = unserialize($site_opts["verify"]);
			$login_verify_allow = $verify_allow['login'];
		</php>
 <php>if($login_verify_allow){</php>
		<div style="width:55px;">验证码：</div>
        <div style="width:130px; margin-bottom:5px;">
        <input name="verify" type="text" class="TextH20" id="textfield3" onfocus="this.className='Text2'" onblur="this.className='TextH20'" style="width:50px;" />
		 <a href="###" onclick="changeverify()"><img src="__TS__/Index/verify" id="verifyimg" alt="换一张" style="vertical-align: middle;"/></a>
		</div>
 <php>}</php>

		<div style="width:130px; margin-bottom:5px;"><input name="remembor" type="checkbox" value="1" />下次自动登录</div>
		 <div style="width:130px; margin-bottom:5px;"><input name="button" type="submit" class="btn_b left_do" id="button" value="登 录" /></div>
		</form>
	</div>
	<php>if($ad["leftmenu"]){</php>
    <div class="ad_app">{$ad["leftmenu"]}</div>
	<php>}</php>
		<div class="user_app_btm"></div>
	</div><!-- 用户组件列表 end -->
<php>}else{</php>
<link href="__THEME__/css/home.css" rel="stylesheet" type="text/css" />
<div class="user_app" <if condition="MODULE_NAME eq 'Space'">style="padding-top:50px;"</if>><!-- 用户组件列表 begin -->
	<!-- <div class="user_app_top"></div> -->
	<!-- <div class="user_app_list">
		<ul>
			<volist name="APPMENUS_LEFT" id="app">
				<li>
					<a href="{$app.url}" class="a14"><img src="{$app.icon}" />{$app.name}</a>
					<php>if($app["add_name"]){</php>
						<span><a href="{$app.add_url}">{$app.add_name}</a></span>
					<php>}</php>
				</li>
			</volist>		
		</ul>
	</div> -->
	<div class="avatar <if condition="MODULE_NAME eq 'Space'">location</if> ">
		<img src="{$mid|getUserFace='middle'}?<?php echo time();?>" width="135" height="135"/>
		<!-- <img src="__THEME__/images/avatar.jpg" width="100" height="100" /> -->
	</div>
	<div class="info">
		<a href="__APP__/Info/face" title="更换头像">更换头像</a>
		<!-- <span class="space"></span> -->
		<a style="padding-right:0;" href="__APP__/Info/index">修改资料</a>
	</div>
	<div class="separate"></div>
	<div class="level">
		<h4>ID：{$my_name}</h4>
        <ul>
                <php>if(!empty($rank)){</php><li><span class="l cGray2">等级：</span><span class="r cBlue" style="margin-top:6px;"><img src="<php>echo THEME_URL;</php>/images/group/{$rank['icon']}" title="{$rank['name']}" alt="{$rank['name']}"/></span></li><php>}</php>
                <volist name="credit" id="vo" k="key">
                        <li><span class="l cGray2">{$key}：</span><span class="r cBlue">{$vo}</span></li>
                </volist>
        </ul>
        <ul>
                <php>foreach($userInfo as $k=>$v){</php>
                <li><span class="l cGray2">{$k}：</span><span class="r cBlue">{$v}</span></li>
                <php>}</php>
        </ul>
	</div>
	<div class="separate"></div>
	<div class="item-title"><img src="__THEME__/images/leftnav_data.png" /> 健康数据</div>
	<div class="separate"></div>
	<ul class="item-list">
		<li><img src="__THEME__/images/leftnav_data_base.png" /> <a href="{:U('base://Index/index')}">基础数据统计</a></li>
		<li><img src="__THEME__/images/leftnav_data_health.png" /> <a href="{:U('health://Index/index')}">健康图表</a></li>
		<li><img src="__THEME__/images/leftnav_data_report.png" /> <a href="{:U('report://Index/index')}">检查报告</a></li>
		<li><img src="__THEME__/images/leftnav_data_medicine.png" /> <a href="{:U('medicine://Index/index')}">使用及关注药物</a></li>
		<li><img src="__THEME__/images/leftnav_data_docotor.png" /> <a href="{:U('doctor://Index/index')}">主治及关注医生</a></li>
	</ul>
	<div class="separate"></div>
	<div class="item-title"><img src="__THEME__/images/leftnav_friend.png" /> 病友</div>
	<div class="separate"></div>
	<ul class="item-list">
		<li><img src="__THEME__/images/leftnav_friend_small.png" /><a href="{:U('Friend/index')}">所有关注病友</a></li>
		<li><img src="__THEME__/images/leftnav_friend_small.png" /><a href="#">同城病友</a></li>
		<li><img src="__THEME__/images/leftnav_friend_small.png" /><a href="#">同病病友</a></li>
		<li><img src="__THEME__/images/leftnav_friend_small.png" /><a href="#">特别关注</a></li>
		<li><img src="__THEME__/images/leftnav_friend_small.png" /><a href="#">我的粉丝</a></li>
	</ul>				
	<div class="separate"></div>
	<div class="item-title"><img src="__THEME__/images/leftnav_group.png" /> 群组</div>
	<div class="separate"></div>
	<ul class="item-list">
		<li><img src="__THEME__/images/leftnav_group_small.png" /><a href="{:U('group://Index/index')}">我的群组</a></li>
		<li><img src="__THEME__/images/leftnav_group_small.png" /><a href="{:U('group://Index/flist')}">好友的群组</a></li>
		<li><img src="__THEME__/images/leftnav_group_small.png" /><a href="{:U('group://Index/search')}">所有群组</a></li>
		<li><img src="__THEME__/images/leftnav_group_small.png" /><a href="{:U('group://Index/allTopic')}">最新话题</a></li>
	</ul>	
	<div class="separate"></div>
	<div class="item-title"><img src="__THEME__/images/leftnav_app.png" />健康应用</div>
	<div class="separate"></div>
	<ul class="item-list">
		<li><img src="__THEME__/images/leftnav_app_document.png" /><a href="#">健康档案</a></li>
		<li><img src="__THEME__/images/leftnav_app_helper.png" /><a href="#">住院助手</a></li>
	</ul>
	<!-- <div class="app_add"><a href="__TS__/App/">添加或删除组件</a></div> -->
	<php>if($ad["leftmenu"]){</php>
    <div class="ad_app">{$ad["leftmenu"]}</div>
	<php>}</php>
	<div class="user_app_btm"></div>
	</div><!-- 用户组件列表 end -->

<php>}</php>